﻿using System;
using System.Runtime.InteropServices;

namespace ControlLibrary.Win32
{
    public class EM
    {
        public const int EM_GETSEL = 0x00B0;
        public const int EM_LINEINDEX = 0x00BB;
        public const int EM_LINEFROMCHAR = 0x00C9;
        public const int EM_POSFROMCHAR = 0x00D6;
        public const int EM_CHARFROMPOS = 0x00D7;

        public const int EM_FORMATRANGE = WM.WM_USER + 0x39;
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct CHARRANGE
    {
        public long cpMin;
        public long cpMax;
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct FORMATRANGE
    {
        public IntPtr hdc;
        public IntPtr hdcTarget;
        public UnsafeMethods.RECT rc;
        public UnsafeMethods.RECT rcPage;
        public int cpMin, cpMax;
    }
    [StructLayout(LayoutKind.Sequential)]
    public struct POINTL
    {
        public long x;
        public long y;
    }
}
